package com.xbongbong.pro.sheet.pojo;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.enums.SheetTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author zcp
 * @version v1.0
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class SheetInfoPojo implements Serializable {
    private static final long serialVersionUID = -5002851551402266879L;

    /**
     * 回/付款单数据data
     */
    private String serialNo;
    /**
     * 回/付款单数据data
     */
    private JSONObject data;

    /**
     * 回/付款单金额（已经处理过金额or核销金额）
     */
    private Double amount;

    /**
     * 回/付款单类型
     */
    private String sheetType;

    /**
     * 回/付款单类型
     */
    private SheetTypeEnum sheetTypeEnum;

    /**
     * 只有非父的回/付款单才会需要更新其关联的合同/回款计划、采购合同/付款计划
     */
    private Integer alone;
    /**
     * 父单子单公用的uuid
     */
    private String uuid;

    public SheetInfoPojo(String serialNo, JSONObject data, Double amount, String sheetType, SheetTypeEnum sheetTypeEnum, Integer alone, String uuid) {
        this.serialNo = serialNo;
        this.data = data;
        this.amount = amount;
        this.sheetType = sheetType;
        this.sheetTypeEnum = sheetTypeEnum;
        this.alone = alone;
        this.uuid = uuid;
    }
}
